<?php 
/**
* 微信小程序index
* @Author    紫梦
* @DateTime  2017-12-20
* @copyright 响响租车
* @version   1.0
*/
namespace app\wxapp\controller;
use think\Request;
use app\common\model\Cars;
use app\common\model\Secure;
use app\common\model\Inspect;
use app\common\model\Repair;
class Index extends Base
{
    public function index()
    {
    	$data['cars'] = Cars::count();
    	$data['secure'] = Secure::scope('SecureNum', time()+7776000)->count();
    	$data['inspect'] = Inspect::scope('InspectNum', time()+25920000)->count();
    	$data['repair'] = Secure::scope('Status')->count();

    	return $data;
    }	
}
